package cn.kimming.rpc.remoting.transport;

import java.io.Serializable;
import java.util.Arrays;

public class RpcRequest implements Serializable {
    private String requestId;       // 请求id
    private String interfaceName;   // 请求接口名称
    private String methodName;      // 请求方法名称
    private String[] methodTypeNames;   // 方法参数类型名称
    private Object[] methodArgs;      // 请求参数

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String[] getMethodTypeNames() {
        return methodTypeNames;
    }

    public void setMethodTypeNames(String[] methodTypeNames) {
        this.methodTypeNames = methodTypeNames;
    }

    public Object[] getMethodArgs() {
        return methodArgs;
    }

    public void setMethodArgs(Object[] methodArgs) {
        this.methodArgs = methodArgs;
    }

    @Override
    public String toString() {
        return "RpcRequest{" +
                "requestId='" + requestId + '\'' +
                ", interfaceName='" + interfaceName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", methodTypeNames=" + Arrays.toString(methodTypeNames) +
                ", methodArgs=" + Arrays.toString(methodArgs) +
                '}';
    }
}
